<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container">
            <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="brand" href="/">朗泰会议系统</a>
            <div class="nav-collapse collapse">                                                                                       
                <ul class="nav">
                    <li class="active"><a href="/">首页</a></li>
                    <li><a href="/wmeeging">会议监控</a></li>
                    <li><a href="/cmeeting">会议管理</a></li>
                </ul>
                <% if (!locals.user) { %>
                    <form class="navbar-form pull-right" method="post" action="/login">
                        <input class="span2" type="text" id="username" name="username" placeholder="账户名">
                        <input class="span2" type="password" id="password" name="password" placeholder="密码">
                        <button type="submit" class="btn">登录</button>
                    </form>
                <% } else { %>
                    <ul class="nav pull-right">
                        <li><a class="brand" href="/u/<%= locals.user.username %>/edit"><img src="/images/avatar.png"></a></li>
                        <li><a href="/u/<%= locals.user.username %>">Me</a></li>
                        <li><a href="/logout">退出</a></li>
                    </ul>
                <% } %>
            </div>
        </div>
    </div>
</div>
